package com.edu.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.entity.HfdVideoInfo;
import com.edu.vo.Result;

/**
 * <p>
 * 视频表 服务类
 * </p>
 *
 * @author jr
 * @since 2021-04-16
 */
public interface IHfdVideoInfoService extends IService<HfdVideoInfo> {

    /**
     * 添加视频
     *
     * @param hfdVideoInfo
     * @return
     */
    Result addVideo(HfdVideoInfo hfdVideoInfo);

    /**
     * 查询所有视频信息
     *
     * @return
     */
    Result queryVideo();

    /**
     * 根据video_id删除视频
     *
     * @return
     */
    Result deleteVideoById(String video_id);

    /**
     * 根据video_id修改视频
     *
     * @param hfdVideoInfo
     * @return
     */
    Result updateVideoById(HfdVideoInfo hfdVideoInfo);

    /**
     * 上传视频到ali
     * @param hfdVideoInfo
     * @return
     */
    Result uploadVideo(HfdVideoInfo hfdVideoInfo);

    Result getVideoBySkuId(Integer skuId);
}
